<?php
/**
 * Created by PhpStorm.
 * ApiUserModel: xiao
 * Date: 2018/1/23
 * Time: 10:44
 */

namespace App\Http\Controllers\Api;


use App\Http\Common\Base\ApiController;
use App\Http\Common\Config\PlatformConfig;
use App\Http\Common\Utils\DataUtils;
use App\Http\Common\Utils\JUtils;
use App\Http\Logic\Api\ApiUserLogic;
use App\Http\Middleware\Api\CrossHttp;
use App\Http\Models\Api\ApiUserModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
use Symfony\Component\VarDumper\Cloner\Data;

class UserController extends ApiController
{

    public function getList()
    {
        $data = array('name' => 'zhangsan', 'age' => 111);
        return JUtils::R($data);
    }


    public function weChatLogin()
    {
        return ApiUserLogic::weChatLogin();
    }

    public function register(Request $request)
    {
        return ApiUserLogic::register($request);
    }


}